package com.cbtx.tablet.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

/**
 * author : joker.peng
 * e-mail : joker@fiture.com
 * date   : 2021/7/5 3:24 PM
 * desc   :
 */
class PagerAdapter(fm: FragmentManager,var fragments: MutableList<Fragment>) : FragmentPagerAdapter(fm) {

    override fun getCount(): Int {
        return fragments.size
    }

    override fun getPageTitle(position: Int): CharSequence? {
        return null
    }

    override fun getItem(position: Int): Fragment {
        return fragments[position]
    }
}